#!/bin/bash
sudo curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
docker ps -a
wget "https://gitee.com/sourcemirror/docker-compose/releases/download/v2.29.7/docker-compose-linux-x86_64" -O docker-compose
chmod +x docker-compose
mv docker-compose /usr/local/bin
docker-compose -v